#include #include //using namespace std; using std::cout; using std::endl; using std::ios_base; void main() { int x = 0; //setf - set flag std::cout.setf(std::ios_base::left); cout << ios_base::left << endl; cout << ios_base::right << endl; cout << ios_base::fixed << endl; cout << cout.flags() << endl; // | bitwize or cout << (12 | 4) << endl; // & bitwize and cout << (12 & 4) << endl; // ^ bitwize x-or - one or the other but not both cout << (12 ^ 4) << endl; //do //{ // cout << setw(5) << x << ";" << endl; // x++; //} //while(x < 100); //int age; // ////post test loop - because the question is at the end ////indeterminate loop - because we do not know now many times ////we will go through the loop ////data validation loop //do //{ // cout << "How old are you? "; // cin >> age; //} //while(age < 0 || age > 120); ////short circuit boolean expression }